package com.summer.boss.enums;

import lombok.Getter;

/**
 * @author john
 */
@Getter
public enum ResponseCodeEnum {

    //请求成功
    SUCCESS(200, "success"),
    //系统内部异常
    SYSTEM_ERROR(500, "Internal Server Error"),
    //网络异常
    NETWORK_ERROR(500, "Network Error"),
    //token错误
    TOKEN_ERROR(600, "token err"),
    //用户不存在错误
    NO_USER(601, "user not exist"),
    //用户不存在错误
    PASSWORD_ERROR(602, "password_error"),
    //权限错误
    AUTH_ERROR(700, "no permission");

    ResponseCodeEnum(Integer  code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer  code;
    private String message;
}
